package com.hualan.mapper;

import com.hualan.domain.Publicity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 29524
* @description 针对表【publicity(资讯公告表，用于存储用户通知展示信息)】的数据库操作Mapper
* @createDate 2024-09-06 17:08:48
* @Entity com.hualan.domain.Publicity
*/
public interface PublicityMapper {
//    查询全部通知信息
List<Publicity> selectAllPublicity();


    //通过id删除
    int deleteByPrimaryKey(Long id);


    //增加
    int insert(Publicity record);



    int insertSelective(Publicity record);


    //通过主键查询
    Publicity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Publicity record);


    //通过主键修改
    int updateByPrimaryKey(Publicity record);

    //模糊搜索
    List<Publicity> selectPublicityLike(@Param("name") String name, @Param("publicityText") String publicityText);


    int getCount();
}
